.class public Lcom/estrongs/android/pop/d;
.super Ljava/lang/Object;
.source "FileObjectLoaderErrorHandler.java"


# static fields
.field private static final d:Ljava/lang/String; = "d"


# instance fields
.field a:Landroid/content/Context;

.field b:Les/zi$c;

.field c:Landroid/net/ConnectivityManager;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Les/zi$c;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 3
    iput-object v0, p0, Lcom/estrongs/android/pop/d;->c:Landroid/net/ConnectivityManager;

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 5
    iput-object p2, p0, Lcom/estrongs/android/pop/d;->b:Les/zi$c;

    return-void
.end method

.method private a()Z
    .locals 2

    .line 123
    iget-object v0, p0, Lcom/estrongs/android/pop/d;->c:Landroid/net/ConnectivityManager;

    if-nez v0, :cond_0

    .line 124
    iget-object v0, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const-string v1, "connectivity"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/net/ConnectivityManager;

    iput-object v0, p0, Lcom/estrongs/android/pop/d;->c:Landroid/net/ConnectivityManager;

    .line 125
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/d;->c:Landroid/net/ConnectivityManager;

    const/4 v1, 0x0

    if-nez v0, :cond_1

    return v1

    .line 126
    :cond_1
    invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v0

    if-nez v0, :cond_2

    goto :goto_0

    .line 127
    :cond_2
    invoke-virtual {v0}, Landroid/net/NetworkInfo;->isConnected()Z

    move-result v1

    :goto_0
    return v1
.end method

.method private b(Ljava/lang/String;)Z
    .locals 1

    .line 1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->n2(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {p1}, Les/r40;->j(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Lcom/estrongs/android/pop/d$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/d$a;-><init>(Lcom/estrongs/android/pop/d;Ljava/lang/String;)V

    invoke-static {v0}, Lcom/estrongs/android/util/o;->b(Ljava/lang/Runnable;)V

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method


# virtual methods
.method protected a(Ljava/lang/String;)V
    .locals 2

    .line 1
    new-instance v0, Les/zi;

    iget-object v1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-direct {v0, v1, p1}, Les/zi;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->b:Les/zi$c;

    invoke-virtual {v0, p1}, Les/zi;->a(Les/zi$c;)V

    .line 3
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/Throwable;Lcom/estrongs/android/view/FileGridViewWrapper;)Z
    .locals 11

    .line 4
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 5
    invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    const-string v0, ""

    :cond_0
    const-string v1, "baidu-up-to-pcs"

    .line 6
    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_2

    .line 7
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Q0()V

    :cond_1
    return v2

    .line 9
    :cond_2
    instance-of v1, p2, Lcom/estrongs/fs/FileSystemException;

    if-eqz v1, :cond_3

    .line 10
    check-cast p2, Lcom/estrongs/fs/FileSystemException;

    .line 11
    invoke-virtual {p2}, Lcom/estrongs/android/exception/AbstractException;->getCause()Ljava/lang/Throwable;

    move-result-object v1

    .line 12
    invoke-static {p2}, Lcom/estrongs/android/exception/a;->a(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    move-result-object p2

    .line 13
    :cond_3
    iget-object v1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const v3, 0x7f1106e4

    invoke-virtual {v1, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 14
    instance-of v3, p2, Ljava/lang/IllegalArgumentException;

    const-string v4, "Invalid operation"

    const v5, 0x7f11016b

    const/4 v6, 0x0

    if-eqz v3, :cond_6

    const/16 p3, 0x212

    .line 15
    invoke-static {p3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_28

    .line 16
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p3

    invoke-virtual {p3, p1}, Lcom/estrongs/android/pop/l;->c(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_5

    .line 17
    new-instance p2, Lcom/estrongs/android/ui/dialog/f0;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/l;->s(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p2, p3, p1, v0, v6}, Lcom/estrongs/android/ui/dialog/f0;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V

    invoke-virtual {p2}, Lcom/estrongs/android/ui/dialog/f0;->a()V

    .line 18
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_4

    .line 19
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-virtual {p1, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_4
    return v2

    .line 20
    :cond_5
    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const v0, 0x7f110a03

    invoke-virtual {p3, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    new-array v0, v2, [Ljava/lang/Object;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    aput-object p1, v0, v6

    invoke-static {p3, v0}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_5

    .line 21
    :cond_6
    instance-of v3, p2, Lcom/estrongs/android/pop/netfs/NetFsException;

    const/4 v7, 0x0

    const-string v8, "\n"

    if-eqz v3, :cond_e

    .line 22
    instance-of v1, p2, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$PcsFileSystemException;

    if-eqz v1, :cond_7

    .line 23
    move-object v1, p2

    check-cast v1, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$PcsFileSystemException;

    iget v1, v1, Lcom/estrongs/fs/impl/pcs/PcsFileSystem$PcsFileSystemException;->errorCode:I

    const/16 v3, 0x7941

    if-lt v1, v3, :cond_7

    const/16 v3, 0x7946

    if-gt v1, v3, :cond_7

    .line 24
    iget-object v3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    check-cast v3, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v3}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->e0()Lcom/estrongs/android/pop/view/FileExplorerActivity$d3;

    move-result-object v3

    .line 25
    invoke-virtual {v3, p3, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity$d3;->a(Lcom/estrongs/android/view/FileGridViewWrapper;Ljava/lang/String;)V

    .line 26
    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const v4, 0x7f1107be

    invoke-virtual {p3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v3, v7, v1, p3}, Lcom/estrongs/android/pop/view/FileExplorerActivity$d3;->a(Ljava/lang/String;ILjava/lang/String;)V

    .line 27
    :cond_7
    check-cast p2, Lcom/estrongs/android/pop/netfs/NetFsException;

    iget-object p2, p2, Lcom/estrongs/android/pop/netfs/NetFsException;->error:Lcom/estrongs/android/pop/netfs/NetFsException$ERROR_CODE;

    sget-object p3, Lcom/estrongs/android/pop/netfs/NetFsException$ERROR_CODE;->NETFS_ERROR_AUTH_FAILED:Lcom/estrongs/android/pop/netfs/NetFsException$ERROR_CODE;

    if-ne p2, p3, :cond_9

    .line 28
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->S(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 29
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->K(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    const-string v1, "/"

    .line 30
    invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_9

    const-string p2, "dropbox"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-nez p2, :cond_8

    const-string p2, "box"

    invoke-virtual {p2, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_9

    .line 31
    :cond_8
    new-instance p2, Landroid/content/Intent;

    iget-object v0, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const-class v1, Lcom/estrongs/android/ui/view/CreateOAuthNetDisk;

    invoke-direct {p2, v0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v0, "nettype"

    .line 32
    invoke-virtual {p2, v0, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string p3, "editServer"

    .line 33
    invoke-virtual {p2, p3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string p3, "originalPath"

    .line 34
    invoke-virtual {p2, p3, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 35
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-virtual {p1, p2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 36
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p2, 0x7f11016c

    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return v2

    :cond_9
    const-string p2, "UnknownHostException"

    .line 37
    invoke-virtual {v0, p2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_a

    const-string p2, "timed out"

    invoke-virtual {v0, p2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_a

    const-string p2, "ConnectException"

    invoke-virtual {v0, p2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p2

    if-eqz p2, :cond_b

    :cond_a
    const/4 v6, 0x1

    :cond_b
    if-eqz v6, :cond_c

    .line 38
    invoke-direct {p0}, Lcom/estrongs/android/pop/d;->a()Z

    move-result p2

    if-nez p2, :cond_c

    .line 39
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p2, 0x7f1106fd

    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    :cond_c
    const-string p2, "Error: oauth_problem=timestamp_refused"

    .line 40
    invoke-virtual {v0, p2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p2

    if-eqz p2, :cond_d

    .line 41
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p2, 0x7f110a91

    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_0

    .line 42
    :cond_d
    iget-object p2, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const v0, 0x7f110772

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, p1, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :goto_0
    return v2

    .line 43
    :cond_e
    instance-of p3, p2, Lcom/estrongs/android/exception/GeneralException;

    if-eqz p3, :cond_11

    .line 44
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/l;->s(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_f

    .line 45
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 46
    :cond_f
    new-instance p3, Lcom/estrongs/android/ui/dialog/f0;

    iget-object v0, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-direct {p3, v0, p1, p2, v6}, Lcom/estrongs/android/ui/dialog/f0;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V

    invoke-virtual {p3}, Lcom/estrongs/android/ui/dialog/f0;->a()V

    .line 47
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_10

    .line 48
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-virtual {p1, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_10
    return v2

    .line 49
    :cond_11
    instance-of p3, p2, Lcom/hierynomus/ntlm/NtlmException;

    const-string v3, "LGF"

    if-eqz p3, :cond_12

    .line 50
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "find NtlmException:"

    invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-static {v3, p2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 51
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/d;->a(Ljava/lang/String;)V

    return v2

    .line 52
    :cond_12
    instance-of p3, p2, Lcom/jcraft/jsch/JSchException;

    if-eqz p3, :cond_15

    .line 53
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    invoke-virtual {p2, p1}, Lcom/estrongs/android/pop/l;->s(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    if-nez p2, :cond_13

    .line 54
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    .line 55
    :cond_13
    new-instance p3, Lcom/estrongs/android/ui/dialog/f0;

    iget-object v0, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-direct {p3, v0, p1, p2, v6}, Lcom/estrongs/android/ui/dialog/f0;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V

    invoke-virtual {p3}, Lcom/estrongs/android/ui/dialog/f0;->a()V

    .line 56
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_14

    .line 57
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-virtual {p1, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_14
    return v2

    .line 58
    :cond_15
    instance-of p3, p2, Ljava/io/IOException;

    const v5, 0x7f1106df

    const v9, 0x7f1106e0

    const v10, 0x7f1106de

    if-eqz p3, :cond_1f

    .line 59
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 60
    invoke-virtual {v0, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p3

    if-eqz p3, :cond_16

    move-object v0, v4

    goto/16 :goto_5

    :cond_16
    const/16 p3, 0x226

    .line 61
    invoke-static {p3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    const v4, 0x7f1106e1

    if-eqz p3, :cond_17

    .line 62
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_5

    .line 63
    :cond_17
    instance-of p3, p2, Ljcifs/smb/SmbAuthException;

    if-eqz p3, :cond_1a

    .line 64
    new-instance p3, Ljava/lang/StringBuilder;

    invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "find SmbAuthException:"

    invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-static {v3, p3}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string p3, "Logon failure"

    .line 65
    invoke-virtual {v0, p3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result p3

    if-ltz p3, :cond_19

    .line 66
    invoke-direct {p0, p1}, Lcom/estrongs/android/pop/d;->b(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_18

    .line 67
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/d;->a(Ljava/lang/String;)V

    :cond_18
    return v2

    :cond_19
    const-string p1, "Access is denied"

    .line 68
    invoke-virtual {v0, p1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result p1

    if-ltz p1, :cond_28

    .line 69
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-virtual {p1, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_5

    .line 70
    :cond_1a
    instance-of p3, p2, Ljcifs/smb/SmbException;

    if-nez p3, :cond_1e

    instance-of p3, p2, Lcom/hierynomus/smbj/common/SMBException;

    if-eqz p3, :cond_1b

    goto :goto_2

    .line 71
    :cond_1b
    instance-of p3, p2, Ljava/net/ConnectException;

    if-nez p3, :cond_1d

    instance-of p3, p2, Ljava/net/SocketException;

    if-nez p3, :cond_1d

    instance-of p3, p2, Ljava/net/SocketTimeoutException;

    if-eqz p3, :cond_1c

    goto :goto_1

    .line 72
    :cond_1c
    instance-of p3, p2, Ljava/io/FileNotFoundException;

    if-eqz p3, :cond_28

    .line 73
    iget-object p2, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p3, 0x7f110751

    invoke-virtual {p2, p3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    new-array v0, v2, [Ljava/lang/Object;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    aput-object p1, v0, v6

    invoke-static {p3, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, p1, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return v6

    .line 74
    :cond_1d
    :goto_1
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 75
    invoke-virtual {p3, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 76
    invoke-virtual {p3, v10}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 77
    invoke-virtual {p3, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_5

    .line 78
    :cond_1e
    :goto_2
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const v0, 0x7f1106e2

    .line 79
    invoke-virtual {p3, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 80
    invoke-virtual {p3, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 81
    invoke-virtual {p3, v10}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const v0, 0x7f1106e3

    .line 82
    invoke-virtual {p3, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_5

    .line 83
    :cond_1f
    instance-of p3, p2, Lcom/estrongs/fs/impl/usb/UsbFsException;

    if-eqz p3, :cond_22

    .line 84
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p3, 0x7f110770

    invoke-virtual {p1, p3}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    .line 85
    check-cast p2, Lcom/estrongs/fs/impl/usb/UsbFsException;

    iget-object p2, p2, Lcom/estrongs/fs/impl/usb/UsbFsException;->errorCode:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    sget-object p3, Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;->USB_ERROR_TYPE_NOT_SUPPORTED:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    if-ne p2, p3, :cond_20

    .line 86
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p2, 0x7f110b2a

    invoke-virtual {p1, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    goto :goto_3

    .line 87
    :cond_20
    sget-object p3, Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;->USB_ERROR_IO_ERROR:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    if-ne p2, p3, :cond_21

    .line 88
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p2, 0x7f11042c

    invoke-virtual {p1, p2}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    .line 89
    :cond_21
    :goto_3
    iget-object p2, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-static {p2, p1, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return v2

    .line 90
    :cond_22
    instance-of p3, p2, Lcom/estrongs/fs/impl/adb/AdbFsException;

    if-eqz p3, :cond_25

    .line 91
    move-object p3, p2

    check-cast p3, Lcom/estrongs/fs/impl/adb/AdbFsException;

    iget-object p3, p3, Lcom/estrongs/fs/impl/adb/AdbFsException;->errorCode:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    sget-object v1, Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;->ADB_ERROR_ES_NOT_INSTALLED:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    if-eq p3, v1, :cond_24

    sget-object v1, Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;->ADB_ERROR_ES_NEED_UPDATE:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    if-ne p3, v1, :cond_23

    goto :goto_4

    .line 92
    :cond_23
    sget-object v1, Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;->ADB_ERROR_ES_AUTH_FAILED:Lcom/estrongs/fs/impl/adb/AdbFsException$ERROR_CODE;

    if-ne p3, v1, :cond_28

    .line 93
    new-instance p2, Les/zi;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->H(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p2, p3, p1, v0}, Les/zi;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 94
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p3, 0x7f110082

    invoke-virtual {p1, p3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Les/zi;->a(Ljava/lang/String;)V

    .line 95
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->b:Les/zi$c;

    invoke-virtual {p2, p1}, Les/zi;->a(Les/zi$c;)V

    .line 96
    invoke-virtual {p2}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return v2

    .line 97
    :cond_24
    :goto_4
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p2

    .line 98
    new-instance p3, Ljava/util/ArrayList;

    invoke-direct {p3}, Ljava/util/ArrayList;-><init>()V

    .line 99
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/Application;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v1

    iget-object v1, v1, Landroid/content/pm/ApplicationInfo;->sourceDir:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v0

    invoke-virtual {p3, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 100
    new-instance v0, Lcom/estrongs/fs/o;

    invoke-direct {v0, p1}, Lcom/estrongs/fs/o;-><init>(Ljava/lang/String;)V

    .line 101
    new-instance v1, Les/r60;

    invoke-direct {v1, p3, v0, v2}, Les/r60;-><init>(Ljava/util/List;Lcom/estrongs/fs/g;Z)V

    .line 102
    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const v3, 0x7f110083

    invoke-virtual {p3, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    new-array v4, v2, [Ljava/lang/Object;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v4, v6

    invoke-static {p3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v1, p3}, Les/s80;->a(Ljava/lang/String;)V

    .line 103
    new-instance p3, Lcom/estrongs/android/pop/e;

    invoke-direct {p3, p2}, Lcom/estrongs/android/pop/e;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, p3}, Les/s80;->a(Les/v80;)V

    .line 104
    new-instance p3, Lcom/estrongs/android/pop/d$b;

    invoke-direct {p3, p0, p1}, Lcom/estrongs/android/pop/d$b;-><init>(Lcom/estrongs/android/pop/d;Ljava/lang/String;)V

    invoke-virtual {v1, p3}, Les/s80;->a(Les/z80;)V

    .line 105
    new-instance p1, Lcom/estrongs/android/ui/dialog/a1;

    const p3, 0x7f1108e3

    invoke-virtual {p2, p3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-direct {p1, p2, p3, v1}, Lcom/estrongs/android/ui/dialog/a1;-><init>(Landroid/app/Activity;Ljava/lang/String;Les/s80;)V

    .line 106
    iget-object p2, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    invoke-virtual {p2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    new-array p3, v2, [Ljava/lang/Object;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    aput-object v0, p3, v6

    invoke-static {p2, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2, v7}, Lcom/estrongs/android/ui/dialog/a1;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/estrongs/android/ui/dialog/a1;

    .line 107
    invoke-virtual {p1, v6}, Lcom/estrongs/android/ui/dialog/a1;->c(Z)Lcom/estrongs/android/ui/dialog/a1;

    .line 108
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/a1;->show()V

    .line 109
    invoke-virtual {v1, p1}, Les/r60;->a(Lcom/estrongs/android/ui/dialog/q;)V

    .line 110
    invoke-virtual {v1}, Les/s80;->d()V

    return v2

    .line 111
    :cond_25
    instance-of p1, p2, Landroid/os/TransactionTooLargeException;

    if-eqz p1, :cond_26

    .line 112
    sget-object p1, Lcom/estrongs/android/pop/d;->d:Ljava/lang/String;

    const-string p3, "IPC error:"

    invoke-static {p1, p3, p2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    return v2

    .line 113
    :cond_26
    invoke-static {v0}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_27

    .line 114
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 115
    invoke-virtual {p3, v9}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 116
    invoke-virtual {p3, v10}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 117
    invoke-virtual {p3, v5}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_5

    :cond_27
    const-string p1, "CannotGetHotRes"

    .line 118
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_28

    .line 119
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    .line 120
    invoke-virtual {p3, v10}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 121
    :cond_28
    :goto_5
    instance-of p1, p2, Ljava/net/UnknownHostException;

    if-nez p1, :cond_29

    instance-of p1, p2, Lcom/estrongs/fs/FileSystemException;

    if-eqz p1, :cond_2a

    if-eqz v0, :cond_2a

    const-string p1, "Not result in the file system for "

    invoke-virtual {v0, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2a

    .line 122
    :cond_29
    iget-object p1, p0, Lcom/estrongs/android/pop/d;->a:Landroid/content/Context;

    const p2, 0x7f110660

    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    :cond_2a
    return v2
.end method
